@charset "UTF-8";
:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  text-decoration: inherit;
}

* p {
  margin-bottom: 0;
}

body {
  margin: 0;
  display: block;
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden; /* 由內層主內容區自行滾動 */
  -webkit-text-size-adjust: 100%; /* 禁止 iOS 自動縮放文字尺寸 */
  background-color: #242424 !important;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

.card {
  padding: 1em;
}

#app {
  text-align: center;
  width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
}

/* 隱藏 scrollbar，但內容仍可滾動 */
::-webkit-scrollbar {
  display: none; /* Chrome、Safari、Edge */
}

* {
  -ms-overflow-style: none; /* IE、Edge 舊版 */
  scrollbar-width: none; /* Firefox */
}

/* 行動裝置：避免 iOS 對小字輸入框自動放大造成視窗縮放跳動 */
input, select, textarea, .user-info-input {
  font-size: 16px;
}

/* 文字樣式 */
.text-stroke{
  -webkit-text-stroke: 0.2px #000;
  text-shadow: 0 0 2px #000, 0 0 4px #000;
  font-weight: 600;
}


/* ===== 白晝日 官網版型===== */
.bottom-bg{
  background: url("./assets/img/img_bottom_bg.jpg") no-repeat top center/cover;
}
.page-wrapper {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: url("./assets/img/img_main_bg_01.jpg") no-repeat top center/cover;
}

/* 內頁（非首頁）使用第二張主背景圖 */
.page-sub .page-wrapper{
  background: url("./assets/img/img_main_bg_02.jpg") no-repeat top center/cover;
}

/* 最底層底圖（在主畫面之下） */
.page-wrapper::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("./assets/img/img_bottom_bg.jpg") no-repeat bottom center/cover;
}

.main-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 720px;
  height: 80px;
  z-index: 1030;
  background: url("./assets/img/img_header_bg.png") no-repeat center/cover;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 6px rgba(0,0,0,0.8);

}

.header-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.header-logo {
  width: 100%;
  height: 100%;
  max-width: 150px;
}
.header-logo img{
    box-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.header-icon-img,
.header-logo-img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  -webkit-transition: transform 0.18s ease-out, -webkit-box-shadow 0.18s ease-out, -webkit-filter 0.18s ease-out;
  transition: transform 0.18s ease-out, -webkit-box-shadow 0.18s ease-out, -webkit-filter 0.18s ease-out;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, filter 0.18s ease-out;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, filter 0.18s ease-out, -webkit-box-shadow 0.18s ease-out, -webkit-filter 0.18s ease-out;
}

.header-icon-btn:hover .header-icon-img {
  -webkit-transform: scale(1.06);
  transform: scale(1.06);
  -webkit-filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.header-icon-btn:active .header-icon-img {
  -webkit-transform: scale(0.97);
  transform: scale(0.97);
  -webkit-box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}
.banner-wrapper,.banner-img{
  width: 100%;
}

/* 影片撥放器 */
.video-player-wrapper{
  width: 100%;
  max-width: 350px;
  height: 100%;
  margin: 0 auto;
}

.section-wrap-text{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}


.main-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 720px;
  height: 50px;
  z-index: 1030;
  background: url("./assets/img/img_footer_bg.png") no-repeat center/cover;
}
.footer-main-btn{
  transition: transform 0.2s ease-out;
}
.footer-main-btn:hover {
  transform: scale(1.1);
}
.footer-main-btn:active {
  transform: scale(0.95);
}
.footer-main-btn-img {
  height: 56px;
  -o-object-fit: contain;
  object-fit: contain;
}

.main-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 80px; 
  padding-bottom: 108px;
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.index-main-content{
  position: fixed;   /* 鎖定這個容器，不讓它亂跑 */
  top: 0;            /* 【關鍵】從螢幕最頂端開始 (Header的背後) */
  bottom: 50px;      /* 底部留給 Footer */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 720px;
  padding-top: 0px;
  padding-bottom: 30px; /* 電腦版底部內距 */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  z-index: 1;
  /* 使用 100vh 確保在 Chrome 中也能正確計算高度 */
  height: 100vh;
  max-height: 100vh;
}
.daytimeday-main-content{
  overflow-y: hidden;
}
.section {
  color: #fff;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.section-home{
  width: 100%;
  padding-top: 80px;
  padding-bottom: 1rem;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}


.download-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-title {
  font-size: 1.25rem;
  font-weight: 700;
  width: 80%;
  max-width: 400px;
  background: #212020;
  padding: 0.5rem;
  border-radius: 10px;
  margin-left: 2rem;
  margin-right: 2rem;
}
.download-wrap{
  display: flex;
  gap: 3rem;
  max-width: 500px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  margin-bottom: 2rem;
}
.qrcode-box{
  max-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.img-qrcode{
  width: 100%;
}
.download-app-link{
  max-width: 150px;
  display: inline-block;
  transition: transform 0.2s ease-out;
}
.download-app-link:hover {
  transform: scale(1.1);
}
.download-app-link:active {
  transform: scale(0.95);
}
.contact-icons {
  max-width: 280px;
  margin: 0 auto;
}
.img-fluid{
  max-width: 150px;
  margin-top: 1rem;
}
.bottom-btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  max-width: 80px;
  margin: 0 auto;
  transition: transform 0.2s ease-out;
}
.bottom-btn:hover{
  transform: scale(1.1);
}
.bottom-btn:active{
  transform: scale(0.9);
}
.main-gif{
  margin-top: 2rem;
}
/* 讓各頁最後一個 .text-center（包 bottom-btn）貼齊 section 底部 */
.section > .text-center:last-child{
  margin-top: auto;
  margin-bottom: 1.5rem;
}
/* RWD：螢幕寬度小於 640 時縮小 QR 區塊 */
@media (max-width: 640px){
  .qrcode-box{
    max-width: 100px;
  }
  .img-fluid{
  max-width: 130px;
  margin-top: 1rem;
}
}

.contact-icon-item {
  width: 20%;
  padding: 8px;
  display: flex;
  justify-content: center;
  transition: transform 0.2s ease-out;
}
.contact-icon-item:hover {
  transform: scale(1.15);
}
.contact-icon-item:active {
  transform: scale(0.9);
}

.contact-icon-item img {
  width: 100%;
  max-width: 40px;
  height: auto;
  -o-object-fit: contain;
  object-fit: contain;
}

.section-main-btn-img {
  height: 56px;
  -o-object-fit: contain;
     object-fit: contain;
}

.section-main-image img {
  border-radius: 8px;
}

/* 白晝日頁：主圖浮在 header 上，並暫時隱藏 LOGO */
.page-daytimeday .header-logo{
  display: none;
}

.daytimeday-img {
  width: 70%;
}
.page-daytimeday .section-main-image{
  position: fixed;
  z-index: 1100;
  margin-top: 40px;
  max-width: 720px;
}
.content-area{
  margin-top: 17rem;
}
.main-menu {
  max-width: 260px;
  z-index: 1020; 
}
.offcanvas-body{
  background: url("./assets/img/img_main_bg_02.jpg") no-repeat center/cover;
  padding-top: 6rem;
}
.nav-link {
  color: #fff;
  padding: 0.6rem 1rem;
  width: 100%;
  border-radius: 5px;
  transition: transform 0.2s ease-out;
}
.nav-link:hover{
  color: #fff;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}
.menu-bottom-btn{
  max-width: 80px;
  margin-top: 0px;
  color: #fff;
  transition: transform 0.2s ease-out;

}
.menu-bottom-btn:hover{
  transform: scale(1.1);
}
.menu-bottom-btn:active{
  transform: scale(0.9);
}
.menu-back-index-img {
  width: 100%;
  max-width: 180px;
  height: auto;
}
.offcanvas-backdrop{
  z-index: 1000;
}
/* RWD：螢幕寬度小於 430 時，選單蓋住內容區（但仍在 header / footer 之下） */
@media (max-width: 430px){
  .main-menu{
    width: 100%;
    max-width: 100%;
    top: 64px;    /* 與 main-content padding-top 對齊，避開 header */
    bottom: 80px; /* 與 main-content padding-bottom 對齊，避開 footer */
    border-radius: 0;
    height: 100vh;
  }
  .daytimeday-img {
    width: 90%;
  }
  .content-area{
    margin-top: 11rem;
  }
  /* 白晝日頁：小螢幕打開選單時隱藏主圖 */
  .offcanvas.show ~ .main-content .daytimeday-main-img{
    display: none;
  }
  .video-player-wrapper{
    max-width: 150px;
  }

  /* 白晝日頁：手機版確保主圖浮在 header 上方 */
  .page-daytimeday .main-content{
    padding-top: 80px; /* 匹配 header 實際高度 */
  }

  /* 首頁：手機版增加底部內距，確保 Chrome 地址欄不會切掉內容 */
  .index-main-content{
    padding-bottom: 60px;
  }
}

/* 歷史緣由頁：輪播樣式 */
.history-main-content{
  overflow-y: hidden;
}
.section-history {
  padding: 2rem 1rem;
}

.section-history h2 {
  font-size: 1.5rem;
  margin-bottom: 0;
  margin-top: 2rem;
}

#historyCarousel {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.history-slide-content {
  padding: 1rem;
}

.history-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.history-main-img {
  width: 100%;
  max-width: 70%;
  height: auto;
  border-radius: 8px;
}

.history-text-content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
}
.history-text-content > p {
  font-size: 1.2rem;
}

/* 輪播控制按鈕樣式 */
#historyCarousel .carousel-control-prev,
#historyCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  opacity: 0.8;
}

#historyCarousel .carousel-control-prev {
  left: 10px;
}

#historyCarousel .carousel-control-next {
  right: 10px;
}

#historyCarousel .carousel-control-prev:hover,
#historyCarousel .carousel-control-next:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.5);
}

#historyCarousel .carousel-control-prev-icon,
#historyCarousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

.text-link{
  color: aqua;
}
/* 手機版樣式 */
@media (max-width: 430px) {
  .section-history {
    padding: 1rem 0.5rem;
  }
  
  .section-history h2 {
  font-size: 1rem;
  margin-bottom: 0;
  margin-top: 2rem;
  }
  
  .history-text-content h3 {
    font-size: 1.2rem;
  }
  
  .history-text-content > p {
    font-size: 1rem;
  }
  #historyCarousel{
    height: 430px;
  }
  
  #historyCarousel .carousel-control-prev,
  #historyCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  #historyCarousel .carousel-control-prev {
    left: 5px;
  }
  
  #historyCarousel .carousel-control-next {
    right: 5px;
  }
  .history-main-img {
  max-width: 90%;
}
}

/* 世界觀頁：輪播樣式 */
.worldview-main-content{
  overflow-y: hidden;
}
.section-worldview {
  padding: 2rem 1rem;
}

.section-worldview h2 {
  font-size: 1.5rem;
  margin-bottom: 0;
  margin-top: 2rem;
}

#worldviewCarousel {
  position: relative;
  max-width: 100%;
}

.worldview-slide-content {
  padding: 1rem;
}

.worldview-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  
}

.worldview-main-img {
  width: 100%;
  max-width: 60%;
  height: auto;
  border-radius: 8px;
}
.worldview-main-gif {
  width: auto;
  height: auto;
  max-height: 300px;
  border-radius: 8px;
}

.worldview-text-content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
}
.worldview-text-content > p {
  font-size: 1.2rem;
}

/* 輪播控制按鈕樣式 */
#worldviewCarousel .carousel-control-prev,
#worldviewCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  opacity: 0.8;
}

#worldviewCarousel .carousel-control-prev {
  left: 10px;
}

#worldviewCarousel .carousel-control-next {
  right: 10px;
}

#worldviewCarousel .carousel-control-prev:hover,
#worldviewCarousel .carousel-control-next:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.5);
}

#worldviewCarousel .carousel-control-prev-icon,
#worldviewCarousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* 手機版樣式 */
@media (max-width: 430px) {
  .section-worldview {
    padding: 1rem 0.5rem;
  }
  
  .section-worldview h2 {
  font-size: 1rem;
  margin-bottom: 0;
  margin-top: 2rem;
}
  
  .worldview-text-content h3 {
    font-size: 1.2rem;
  }
  
  .worldview-text-content > p {
    font-size: 1rem;
  }
  #worldviewCarousel{
    height: 430px;
  }
  
  #worldviewCarousel .carousel-control-prev,
  #worldviewCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  #worldviewCarousel .carousel-control-prev {
    left: 5px;
  }
  
  #worldviewCarousel .carousel-control-next {
    right: 5px;
  }
  .worldview-main-img {
    max-width: 90%;
  }
  .worldview-main-gif {
    max-width: 55%;
  }
}

/*# sourceMappingURL=style.css.map */